/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package framework.groups;

/**
 *
 * @author Guilherme
 */
public class Item
{
    private Integer identifier;
    private String desc;
    
    public Item(Integer id, String s)
    {
        this.identifier = id;
        this.desc = s;
    }
    
    public Item(String s)
    {
        this.identifier = null;
        this.desc = s;
    }
    
    public Item()
    {
        this.identifier = null;
        this.desc = null;
    }
    
    public boolean unidentified()
    {
        return this.identifier == null ? false : true;
    }

    public void identify(int i)
    {
        this.identifier = i;
    }

    public Integer getIdentifier()
    {
        return identifier;
    }

    public void setIdentifier(Integer identifier)
    {
        this.identifier = identifier;
    }

    public String getDesc()
    {
        return desc;
    }

    public void setDesc(String desc)
    {
        this.desc = desc;
    }
}
